$(function (){

    var endPointObj = {
          url: "http://localhost:9400/GetEmployees",
          type: 'GET',
          dataType: 'json',
          success: function(data){

              var empList = data.empData.EmployeeList;
              var i;
              var tbodyHtmlString = '';
              for(i = 0; i < empList.length; i++){
                  var employee = empList[i];
                  tbodyHtmlString += '<tr><td>' + employee.name +'</td>' +

                        '<td>' + employee.title + '</td>' +
                        '<td>'  + employee.city + '</td></tr>';
              }

              $('#empDetails tbody').append(tbodyHtmlString);

          },
          error: function(err){

          },
          complete: function(){

          }
    };

    $.ajax(endPointObj);

})